

package pacman.skills;




/**
 * This class represents pacman's upgraded BiteHall2
 * @author Leonardo
 */
public class BiteHall2 extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public BiteHall2(){
        this.mana = 2;
        this.hit = 2;
        this.cost = 2;
        this.tick = 3;
        this.isActive = false;
        this.spriteIndex = 0;
    }

   

    /**
     * Activation of skill
     * @param cost Cost of skill
     * @param active If BiteHall is active
     * @param bitehall Disables BiteHall if it's all ok
     * @return cost
     */
    public int Activate(int cost, boolean active, BiteHall bitehall){
        if(cost == this.cost && active == true){
            this.isActive = true;
            bitehall.isActive = false;
        }
        return this.cost;
    }

   
}
